﻿@model DevWeb.Biztalk.DeploymentSettings.WebUI.Models.IntegrationVersionViewModel

@{
    ViewBag.Title = "Create New Integration Version";
}

<h2>Create Version for Integration @Model.IntegrationName</h2>

@using (Html.BeginForm("CreateVersion", "IntegrationVersion", FormMethod.Post, new { @class = "form-horizontal" }))
{
    @Html.ValidationSummary(true)

    <fieldset>
        


        @Html.HiddenFor(model => model.IntegrationId)
        @Html.HiddenFor(model => model.Id)
        @Html.HiddenFor(model => model.ProductUpgradeCode)
        @Html.HiddenFor(model => model.IntegrationName)
        @Html.HiddenFor(model => model.PreviousIntergrationVersionId)

        <div class="form-group">
            @Html.LabelFor(model => model.IntegrationName, new { @class = "col-md-2 control-label" })
            <div class="col-md-20">
                @Html.DisplayFor(model => model.IntegrationName, new { @class = "form-control" })
             

            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.ProductUpgradeCode, new { @class = "col-md-2 control-label" })
            <div class="col-md-20">
                @Html.DisplayFor(model => model.ProductUpgradeCode, new { @class = "form-control"})
         

            </div>
        </div>


        <div class="form-group">
            @Html.LabelFor(model => model.CreateDateTime, new { @class = "col-md-2 control-label" })
            <div class="col-md-20">
                @Html.DisplayFor(model => model.CreateDateTime, new { @class = "form-control" })

            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.ProductId, new { @class = "col-md-2 control-label" })
            <div class="col-md-20">
                @Html.TextBoxFor(model => model.ProductId, new { @class = "form-control", @placeholder = "ProductID from BTDFProj" })
        
                @Html.ValidationMessageFor(model => model.ProductId)
            </div>
        </div>

        

        <div class="form-group">
            @Html.LabelFor(model => model.Version, new { @class = "col-md-2 control-label" })
            <div class="col-md-20">
                @Html.TextBoxFor(model => model.Version, new { @class = "form-control", @placeholder = "Version from BTDFProj" })
               
                @Html.ValidationMessageFor(model => model.Version)
            </div>
        </div>




        <div class="form-group">
            @Html.LabelFor(model => model.Description, new { @class = "col-md-2 control-label" })
            <div class="col-md-20">
                @Html.TextBoxFor(model => model.Description, new { @class = "form-control", @placeholder = "Description of version" })
         
                @Html.ValidationMessageFor(model => model.Description)
            </div>
        </div>





        <p>
            <button type="submit" class="btn btn-primary">Store Integration Version</button>
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index", new { id = Model.IntegrationId }, new { @class = "btn btn-info" })
</div>

